package com.ruoyi.dynamic.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dynamic.mapper.UserDynamicTimeMapper;
import com.ruoyi.dynamic.domain.UserDynamicTime;
import com.ruoyi.dynamic.service.IUserDynamicTimeService;

/**
 * 发布活动时间Service业务层处理
 * 
 * @author DEREK
 * @date 2023-10-11
 */
@Service
public class UserDynamicTimeServiceImpl extends ServiceImpl<UserDynamicTimeMapper, UserDynamicTime> implements IUserDynamicTimeService 
{
    @Autowired
    private UserDynamicTimeMapper userDynamicTimeMapper;

    /**
     * 查询发布活动时间
     * 
     * @param id 发布活动时间主键
     * @return 发布活动时间
     */
    @Override
    public UserDynamicTime selectUserDynamicTimeById(Long id)
    {
        return userDynamicTimeMapper.selectUserDynamicTimeById(id);
    }

    /**
     * 查询发布活动时间列表
     * 
     * @param userDynamicTime 发布活动时间
     * @return 发布活动时间
     */
    @Override
    public List<UserDynamicTime> selectUserDynamicTimeList(UserDynamicTime userDynamicTime)
    {
        return userDynamicTimeMapper.selectUserDynamicTimeList(userDynamicTime);
    }

    /**
     * 新增发布活动时间
     * 
     * @param userDynamicTime 发布活动时间
     * @return 结果
     */
    @Override
    public int insertUserDynamicTime(UserDynamicTime userDynamicTime)
    {
        return userDynamicTimeMapper.insertUserDynamicTime(userDynamicTime);
    }

    /**
     * 修改发布活动时间
     * 
     * @param userDynamicTime 发布活动时间
     * @return 结果
     */
    @Override
    public int updateUserDynamicTime(UserDynamicTime userDynamicTime)
    {
        return userDynamicTimeMapper.updateUserDynamicTime(userDynamicTime);
    }

    /**
     * 批量删除发布活动时间
     * 
     * @param ids 需要删除的发布活动时间主键
     * @return 结果
     */
    @Override
    public int deleteUserDynamicTimeByIds(Long[] ids)
    {
        return userDynamicTimeMapper.deleteUserDynamicTimeByIds(ids);
    }

    /**
     * 删除发布活动时间信息
     * 
     * @param id 发布活动时间主键
     * @return 结果
     */
    @Override
    public int deleteUserDynamicTimeById(Long id)
    {
        return userDynamicTimeMapper.deleteUserDynamicTimeById(id);
    }
}
